FROM openjdk:8-jre-alpine
LABEL maintainer="534096094@qq.com"
COPY target/*.jar /app.jar
RUN apk add -U tzdata; \
    ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime; \
    echo 'Asia/Shanghai' >/etc/timezone; \
    touch /app.jar;
ENV JAVA_OPTS=""
EXPOSE 8080
CMD java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar app.jar
